package com.hellogood.yaohuo.server.serviceImpl;

import java.util.List;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.hellogood.yaohuo.server.mgr.factory.MgrFactory;
import com.hellogood.yaohuo.shared.entity.Dept;
import com.hellogood.yaohuo.shared.services.DeptService;

public class DeptServiceImpl extends RemoteServiceServlet implements DeptService {

	/**
	 * 
	 */
	private static final long serialVersionUID = 9122070334312596331L;

	@Override
	public List<Dept> getAllDeptList() {
		return MgrFactory.getInstance().createDeptMgr().getAllDept();
	}

	@Override
	public Dept getDetpByCode(String code) {
		return MgrFactory.getInstance().createDeptMgr().getDeptByCode(code);
	}

}
